import request from '@/utils/request'

// 查询老人列表（模糊搜索，未退住）
export function getElderList(query) {
  return request({
    url: '/nursing/elder/listByNameAndStatus',
    method: 'get',
    params: query
  })
}

// 根据老人ID获取入住记录
export function getCheckInByElderId(elderId) {
  return request({
    url: '/nursing/checkIn/getByElderId/' + elderId,
    method: 'get'
  })
}

// 查询所有已入住老人及其入住信息
export function getInElderList() {
  return request({
    url: '/nursing/checkIn/listInElder',
    method: 'get'
  })
} 